package com.dlc.yunguang.model;

import com.dlc.yunguang.model.intfc.ProductAbnormal;

/**
 * Created by John on 2017/7/21.
 */

public class ProductAbnormalItem implements ProductAbnormal {

    @Override
    public int getLevel() {
        return LEVEL_1;
    }

    private String rfid;
    private String name;
    private String category;
    private int length;
    private int width;
    private String where;

    public ProductAbnormalItem() {

    }

    public ProductAbnormalItem(String rfid, String name, String category, int length, int width,
        String where) {
        this.rfid = rfid;
        this.name = name;
        this.category = category;
        this.length = length;
        this.width = width;
        this.where = where;
    }

    public ProductAbnormalItem(String rfid, String name, String category, int length, int width,
        String where, boolean unbound) {
        this.rfid = rfid;
        this.name = name;
        this.category = category;
        this.length = length;
        this.width = width;
        this.where = where;
    }

    public String getRFID() {
        return rfid;
    }

    public String getName() {
        return name;
    }

    public String getSpec() {
        return category + " " + length + "*" + width;
    }

    public String getWhere() {
        return where;
    }

    public String getCategory() {
        return category;
    }

    public int getLength() {
        return length;
    }

    public int getWidth() {
        return width;
    }

    public String getRfid() {
        return rfid;
    }
}
